DylanTheDog::Application.routes.draw do

  resources :users, except: [:index]
  resources :posts, only: [:index, :new, :create, :show]
  resource :session, only: [:new, :create, :destroy]

  # resources :votes, only: [:index, :create, :show]
  get 'votes/:id_1/:id_2', to: 'votes#index'
  # get 'votes', to: 'votes#index'
  # get 'votes/:id'  'votes#show'
  resources :votes, only: [:index, :show]

  root 'static#index'

end
